import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';
const api = apiCreator();
export default {
  //获取个券组列表
  getBondGroupList: (query) => api.get(`${config.interfaces.type5}portfolio-server/user_concern/group/getUserSecurityGroup`, query),

  //获取主体组列表
  getMainGroupList: (query) => api.get(`${config.interfaces.type5}portfolio-server/user_concern/group/getUserCompanyGroup`, query),

  //新增个券组/主体组
  addGroup: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/addUserGroup`, query),

  //编辑个券组/主体组
  editGroup: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/updateUserGroup`, query),

  //删除个券组/主体组
  deleteGroup: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/deleteUserGroup`, query),

  //获取个券详情列表
  getBondInfoList: (query) => api.get(`${config.interfaces.type5}portfolio-server/user_concern/group/querySecurityList`, query),

  //获取主体详情列表
  getMainInfoList: (query) => api.get(`${config.interfaces.type5}portfolio-server/user_concern/group/queryCompanyList`, query),

  //新增关注--个券
  addBondAttention: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/addSecurityInGroup`, query),

  //新增关注--主体
  addMainAttention: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/addCompanyInGroup`, query),

  //删除（取消关注）个券/主体
  deleteAttention: (query) => api.post(`${config.interfaces.type5}portfolio-server/user_concern/group/deleteDetailInGroup`, query),
};
